﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Jarvis.Server.Location;
using Jarvis.Server.Statistics;
using ManagedWifi;
using Ninject.Modules;

namespace Jarvis.Server.IoC
{
    public class JarvisModule : NinjectModule
    {
        #region Overrides of NinjectModule

        public override void Load()
        {
            Kernel.Bind<IManagedWifiContext>().To<ManagedWifiContext>().WithConstructorArgument("requiredClientVersion",ManagedWifiContext.NWlanVersion.WindowsXP);
            Kernel.Bind<ISensorDatasProvider>().To<WlanSensorDatasProvider>();
            Kernel.Bind<ILocationProvider>().To<LocationProvider>();
            Kernel.Bind<IStatisticsCollector>().To<StatisticsCollector>();
        }

        #endregion
    }
}
